package com.yz.web.api;

import lombok.Data;

@Data
public class ResponseWrapper<T> {
    private String targetUrl;
    private Boolean success = true;
    private T data;
    private ErrorInfo error;
    private Boolean unAuthorizedRequest = false;

    public ResponseWrapper() {
    }

    public ResponseWrapper(String targetUrl) {
        this.targetUrl = targetUrl;
    }
}
